import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Demo30 {
    public static void main(String[] args) {
        //创建普通线程池
        ExecutorService executorService= Executors.newCachedThreadPool();
        //创建固定线程数的线程池
        ExecutorService executorService2= Executors.newFixedThreadPool(5000);
        //创建单个线程数的线程池
        ExecutorService executorService3= Executors.newSingleThreadExecutor();
        //创建带定时器的单个线程数量的线程池
        ExecutorService executorService4= Executors.newSingleThreadScheduledExecutor();
    }
}
